package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student lsg = new Student("刘顺国",33,"济南市历城区君授路中海华山珑城","JSD2302","001");
        lsg.eat();
        lsg.sleep();
        lsg.sayHi();
        lsg.study();
        Teacher zdw = new Teacher("张代伟",33,"济南市天桥区",8000.0);
        zdw.eat();
        zdw.sleep();
        zdw.sayHi();
        zdw.teach();
        Doctor myf = new Doctor("马云峰",23,"济南市历下区山大路","主治医生");
        myf.eat();
        myf.sleep();
        myf.sayHi();
        myf.cut();
    }
}
